package com.fjnu.springmvc.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityVO implements Serializable {
    private String name ;
    private String description ;
    private String title ;
    // parsing date string to Date object
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // serializing or deserializing date object to json string
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime ;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime ;
}
